package cn.tedu.submarine;
import javax.swing.*;
import java.util.Random;

//侦查潜艇
public class ObserveSubmarine extends SeaObject implements EnemyScore{

    public ObserveSubmarine(){
        super(63,19);
    }
    /**侦查潜艇移动 */
    @Override
    public void step(){
       x += speed;
    }

    @Override
    public ImageIcon getImage(){
        return Images.obsersubm; //返回侦查潜艇的图片
    }

    public int getScore(){
        return 10; //打掉侦查潜艇，玩家的10分
    }

}
